//1.注册组件【引入组件】
import { createRouter, createWebHashHistory } from 'vue-router'
//@:表示src文件夹
import Home from '@/components/home/Home'
import City from '@/components/city/City'

//2.定义路由规则

const routes = [
 {
	 path:'/',
	  name:'Home',
	component:Home,
 },
 {
		path:'/city',
		name:'City',
		component:City
 }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
